package com.mbc.common.entities;

import java.util.ArrayList;
import java.util.Date;
import java.io.Serializable;

import com.mbc.common.CommonConstants;

@SuppressWarnings("serial")
public class User implements Serializable {

	private long userId;
	private String userName;
	private String loginId;
	private String password;
	private byte status;
	private String module;
	private Date createdDate;
	private long createdBy;
	private Date updatedDate;
	private long updatedBy;
	private ArrayList<UserInRoles> userInRolesList;
	private ArrayList<UserInOffices> userInOfficeList;

	public User(){
		clearProperties();
	}

	public void clearProperties(){
		userId = 0;
		userName = "";
		loginId = "";
		password = "";
		status = CommonConstants.RecordStatus.active;
		module = "";
		createdDate = new Date();
		createdBy = 0;
		updatedDate = new Date();
		updatedBy = 0;
		userInOfficeList = new ArrayList<UserInOffices>();
		userInRolesList = new ArrayList<UserInRoles>();
	}

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getLoginId() {
		return loginId;
	}

	public void setLoginId(String loginId) {
		this.loginId = loginId;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public byte getStatus() {
		return status;
	}

	public void setStatus(byte status) {
		this.status = status;
	}

	public String getModule() {
		return module;
	}

	public void setModule(String module) {
		this.module = module;
	}

	public Date getCreatedDate() {
		return createdDate;
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}

	public long getCreatedBy() {
		return createdBy;
	}

	public void setCreatedBy(long createdBy) {
		this.createdBy = createdBy;
	}

	public Date getUpdatedDate() {
		return updatedDate;
	}

	public void setUpdatedDate(Date updatedDate) {
		this.updatedDate = updatedDate;
	}

	public long getUpdatedBy() {
		return updatedBy;
	}

	public void setUpdatedBy(long updatedBy) {
		this.updatedBy = updatedBy;
	}

	public ArrayList<UserInRoles> getUserInRolesList() {
		return userInRolesList;
	}

	public void setUserInRolesList(ArrayList<UserInRoles> userInRolesList) {
		this.userInRolesList = userInRolesList;
	}

	public ArrayList<UserInOffices> getUserInOfficeList() {
		return userInOfficeList;
	}

	public void setUserInOfficeList(ArrayList<UserInOffices> userInOfficeList) {
		this.userInOfficeList = userInOfficeList;
	}

}
